package com.example.index.tools.glide

import com.cat.annotation.Index
import com.example.index.BaseIndexActivity
import com.example.index.extension.quickStartActivity

@Index(keywords = "GlideIndex", link = "")
class GlideIndexActivity : BaseIndexActivity() {

    private val items = arrayListOf<Pair<String, Class<*>>>()

    override fun getData(): List<String> {

        items.add(Pair("Glide Base64解码图片适配", GlideBase64DecoderActivity::class.java))
        items.add(Pair("Glide 抓取图片调试", GlideLoadImageDebugActivity::class.java))

        return items.map { it.first }.toList()
    }

    override fun handleItemClick(index: Int, title: String) {
        quickStartActivity(items[index].second)
    }


}
